﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<DSDCiZharp.Models.Reserva.Reserva>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Pagos
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Pagos</h2>

    <h2><%: ViewData["MessageRespuesta"]%></h2>

    <table>
        <tr>
            
            <th>
                Número de Reserva
            </th>
            <th>
                Costo de Reserva
            </th>
            <th>
                Opciones
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            
            <td>
                <%: item.ID_RESERVA %>
            </td>
            <td>
                <%: String.Format("{0:F}", item.COSTO_TOTAL) %>
            </td>
            <td>
                <%: Html.ActionLink("Pagar", "Pagar", new { idReserva = item.ID_RESERVA, idCliente = item.ID_CLIENTE})%>
            </td>
        </tr>
    
    <% } %>

    </table>

   <%-- <p>
        <%: Html.ActionLink("Create New", "Create") %>
    </p>--%>

</asp:Content>

